<?php

class Module_Mediate_PaybackMoneyLog extends Module_BaseModule
{
    use Lib_BaseTraitsModule;
    private static $obj = null;
    private $model = null;

    /**
     * 封闭构造.
     */
    public function __construct()
    {
        $this->model = new Model_Mediate_PaybackMoneyLog();
    }

    /**
     * 单例获取
     * 保证一条进程只产生一个Module对象
     *
     * @return Module_Mediate_PaybackMoneyLog
     */
    public static function getInstance()
    {
        if (empty(self::$obj)) {
            self::$obj = new self();
        }

        return self::$obj;
    }

    /*
     **添加
     * @param $insertdata
     * @return mixed
     */
    public function insert($insertdata)
    {
        return $this->model->insert($insertdata);
    }

    /**
     * 获取还款记录
     */
    public function getPayBackLogs($case_id, $pay_time)
    {
        return $this->model->getPayBackLogs($case_id, $pay_time);
    }
    /**
     * 获取还款记录
     */
    public function getPayBackLogsById($case_id)
    {
        return $this->model->getPayBackLogsById($case_id);
    }
}
